package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import Message.Public.*;

    public class SKillTransportReward extends Object implements IMessageBase
    {
        public var toEntityId:SEntityId;
        public var ownerMiniPlayer:SPublicMiniPlayer;
        public var transportColor:int;
        public var rewardCoin:int;
        public var rewardExp:int;
        public var rewardItemCode:int;
        public var rewardItemAmount:int;
        public const _type:int = 12070;
        public static var _regist:SKillTransportReward = new SKillTransportReward(true);

        public function SKillTransportReward(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SKillTransportReward();
        }

        public function __write(param1:SerializeStream) : void
        {
            this.toEntityId.__write(param1);
            this.ownerMiniPlayer.__write(param1);
            param1.writeInt(this.transportColor);
            param1.writeInt(this.rewardCoin);
            param1.writeInt(this.rewardExp);
            param1.writeInt(this.rewardItemCode);
            param1.writeInt(this.rewardItemAmount);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.toEntityId = new SEntityId();
            this.toEntityId.__read(param1);
            this.ownerMiniPlayer = new SPublicMiniPlayer();
            this.ownerMiniPlayer.__read(param1);
            this.transportColor = param1.readInt();
            this.rewardCoin = param1.readInt();
            this.rewardExp = param1.readInt();
            this.rewardItemCode = param1.readInt();
            this.rewardItemAmount = param1.readInt();
            
        }

    }
}
